#ifndef __XMUCONNECT_H__
#define __XMUCONNECT_H__

#include <string>
#include <iostream>
#include <winsock2.h>
#include <windows.h>
#pragma comment(lib,"ws2_32.lib")

class Connect
{
public:
	Connect();
	~Connect();
	void SetPortNum( int num );
	void SetServerIp( std::string server_ip );
	bool StartConnect();
	void SendCommand( int ctype );

private:
	SOCKET mMonitorSocket;
	int mPortNum;
	std::string mServerIp;

	std::string SetBeamBallPos();
	std::string SetBeamBallPos( float x, float y, float z );
	bool GetMessage( SOCKET s );
	void SendMessage( SOCKET s, std::string msg );
	void CloseConnection();
};

#endif //__XMUCONNECT_H__